Skip to content

feat(consensus): Add consensus check for block sequencing #231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 5, 2025

Conversation

frisitano
Copy link
Collaborator

Overview

This PR introduces a should_sequence_block on the Consensus trait such that the manager can asses if the sequencer is authorized to sign a new block for a specific slot.

colinlyguo
colinlyguo previously approved these changes Aug 4, 2025
Copy link
Member

@colinlyguo colinlyguo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. After this PR, is an L1 node (with system contract slot correctly initialized) needed for local running?

@frisitano
Copy link
Collaborator Author

LGTM. After this PR, is an L1 node (with system contract slot correctly initialized) needed for local running?

Not needed, you just have to be specific about how you configure the node. There are 2 ways you can configure the nodes such that L1 provider isn't needed:

  1. Set the consensus algorithm to be noop (--consensus.algorithm=noop)
  2. Set the consensus algorithm to be system-contract (this is default so no cli arguments requied) and then also set the authorized signer address --consensus.authorized-signer=ADDRESS)

greged93
greged93 previously approved these changes Aug 5, 2025
Copy link
Collaborator

@greged93 greged93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

two nits but feel free to merge

Copy link
Collaborator

@greged93 greged93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@frisitano frisitano enabled auto-merge (squash) August 5, 2025 10:50
@frisitano frisitano merged commit 5b57c32 into main Aug 5, 2025
13 checks passed
@frisitano frisitano deleted the feat/sequencer-consensus branch August 5, 2025 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants